<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="css/style.css" rel="stylesheet">
<link href="css/bootstrap.css" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<title>蓝天家政系统</title>
</head>
<body>
	<div class="navbar navbar-inverse navbar-fixed-top container-fluid">
		<div class="navbar-header">
			<a class="navbar-brand" href="#"><span>蓝天家政</span>系统</a>
			<ul class="user-menu">
				<li class="dropdown pull-right"><a href="#"
					class="dropdown-toggle" data-toggle="dropdown"><img
						src="image/user-white.png"
						style="width: 25%; height: 25%; margin-right: 10%;"><label
						class="user">管理员</label><span class="caret"></span></a>
					<ul class="dropdown-menu" role="menu">
						<li><a href="javascript:void(0)" onclick="a();"> <label
								class="user">详细信息</label></a></li>
						<li><a href="logout.action"> <label class="user">注销</label></a></li>
					</ul></li>
			</ul>
		</div>
	</div>
	<!-- /.container-fluid-->


	<div id="sidebar-collapse" class="col-sm-3 col-lg-2 sidebar">
		<form role="search">
			<div class="form-group">登录成功</div>
		</form>
		<ul class="nav menu">
		<li><a href="getAllProviderByAdmin.action">查看所有供应商</a></li>
			<li class="active"><a href="listAllUNAUTHORIZED.action">查看未认证供应商</a></li>
			<li ><a href="setSecondKill.jsp">设置秒杀活动</a></li>
			<li role="presentation" class="divider"></li>
			<li><a href="logout.action">注销</a></li>
		</ul>
	</div>


	<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main"
		id="main">
		<ol class="breadcrumb">
			
			<li class="active"><img src="image/home.png" class="home">/&nbsp;&nbsp;供应商详情:</li>
		</ol>


		<div class="row">
			<div class="col-lg-12">
				<div class="panel-static panel-default">
					<div class="panel-heading">供应商详情:</div>
					<div class="panel-body">
						<table width="50%" border="1">
							<tr>
								<td align="right" width="30%">ID号：</td>
								<td><s:property value="%{#session.provider.id}" /></td>
							</tr>
							<tr>
								<td align="right">名称：</td>
								<td><s:property value="%{#session.provider.name}" /></td>
							</tr>
							<tr>
								<td align="right">城市：</td>
								<td><s:property value="%{#session.provider.city.name}" /></td>
							</tr>
							<tr>
								<td align="right">状态：</td>
								<td>
<%-- 								<s:property value="%{#session.provider.state}" /> --%>
									<s:if test='#session.provider.state.toString()=="STATE_UNAUTHORIZED"'>
 									未认证
									</s:if>
									<s:elseif test='#session.provider.state.toString()=="STATE_PASSED"'>
 									认证通过
									</s:elseif>
									<s:elseif test='#session.provider.state.toString()=="STATE_FAILED"'>
									认证失败 
									</s:elseif>	
								</td>
							</tr>
							<tr>
								<td align="right">联系方式：</td>
								<td><s:property value="%{#session.provider.phone}" /></td>
							</tr>
							<tr>
								<td align="right">公司简介：</td>
								<td><s:property value="%{#session.provider.introduction}" /></td>
							</tr>
							<tr>
								<td align="right">许可证：</td>
								<td><img alt="" width="300px" height="200px"
									src="<s:property value="%{#session.provider.permitpath}" />"></td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td><s:a href="acceptProvider.action?provider.id=%{#session.provider.id}">接受</s:a>/<s:a
										href="rejectProvider.action?provider.id=%{#session.provider.id}">拒绝</s:a></td>
							</tr>
						</table>
					</div>
				</div>

			</div>
		</div>
		<!-- /.row -->

	</div>
	<!--/.main-->

</body>
</html>